package com.yqy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author : modify
 * @version : v1.0
 * @description :
 * @createTime : 2023/7/11 15:30
 * @updateUser : modify
 * @updateTime : 2023/7/11 15:30
 * @updateRemark :
 */
@Data
@TableName("t_demo_user")
public class UserPO {
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "职位")
    @TableField("post")
    private String post;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "生日")
    @TableField("entryDate")
    private Date entryDate;
}
